package com.pengxun.mall.dto;

import java.math.BigDecimal;
import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import lombok.Data;

@Data
public class GoodsDTO{

	@NotEmpty(message="unit不能为空") 
	private String unit;

	@NotEmpty(message="code不能为空") 
	private String code;

	private String boxCode;

	@NotNull(message="price不能为空") 
	private BigDecimal price;

	@NotEmpty(message="name不能为空") 
	private String name;

	private Integer id;

	@NotEmpty(message="spec不能为空") 
	private String spec;
	
	private List<GoodsGroupPriceDTO> goodsGroupPrices;


}